home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_sh-utils.idb / usr / freeware / catman / u_man / cat1 / stty.Z / stty
Encoding:
Text File  |  1998-05-21  |  12.4 KB  |  530 lines

  1. /xlv1/freeware/1998.May/sh-utils/1.16b/sh-utils-1.16b.diffbuild/man
  2.  
  3.  
  4.  
  5.      SSSSTTTTTTTTYYYY((((1111))))         FFFFSSSSFFFF ((((GGGGNNNNUUUU SSSShhhheeeellllllll    UUUUttttiiiilllliiiittttiiiieeeessss))))           SSSSTTTTTTTTYYYY((((1111))))
  6.  
  7.  
  8.  
  9.      NNNNAAAAMMMMEEEE
  10.       stty - change    and print terminal line    settings
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       ssssttttttttyyyy [setting...]
  14.       ssssttttttttyyyy {-a,--all,-g,--help,--save,--version}
  15.  
  16.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.       This documentation is    no longer being    maintained and may be
  18.       inaccurate or    incomplete.  The Texinfo documentation is now
  19.       the authoritative source.
  20.  
  21.       This manual page documents the GNU version of    ssssttttttttyyyy.  If
  22.       given    no arguments, ssssttttttttyyyy prints the baud rate, line
  23.       discipline number (on    systems    that support it), and line
  24.       settings that    have been changed from the values set by `stty
  25.       sane'.  Mode reading and setting are performed on the    tty
  26.       line connected to the    standard input.
  27.  
  28.       ssssttttttttyyyy accepts the following non-option    arguments that change
  29.       aspects of the terminal line operation.  A `[-]' before a
  30.       capability means that    it can be turned off by    preceding it
  31.       with a `-'.  Some arguments are not available    on all
  32.       systems, since they use non-POSIX extensions.     Such
  33.       arguments are    marked below with `(np)'.
  34.  
  35.       Control settings:
  36.  
  37.  
  38.       [-]parenb
  39.            Generate    parity bit in output and expect    parity bit in
  40.            input.
  41.  
  42.       [-]parodd
  43.            Set odd parity (even with `-').
  44.  
  45.       cs5 cs6 cs7 cs8
  46.            Set character size to 5,    6, 7, or 8 bits.
  47.  
  48.       [-]hupcl [-]hup
  49.            Send a hangup signal when the last process closes the
  50.            tty.
  51.  
  52.       [-]cstopb
  53.            Use two stop bits per character (one with `-').
  54.  
  55.       [-]cread
  56.            Allow input to be received.
  57.  
  58.       [-]clocal
  59.            Disable modem control signals.
  60.  
  61.  
  62.  
  63.  
  64.      Page 1                         (printed 5/18/98)
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.      SSSSTTTTTTTTYYYY((((1111))))         FFFFSSSSFFFF ((((GGGGNNNNUUUU SSSShhhheeeellllllll    UUUUttttiiiilllliiiittttiiiieeeessss))))           SSSSTTTTTTTTYYYY((((1111))))
  72.  
  73.  
  74.  
  75.       [-]crtscts (np)
  76.            Enable RTS/CTS handshaking.
  77.  
  78.       Input    settings:
  79.  
  80.  
  81.       [-]ignbrk
  82.            Ignore break characters.
  83.  
  84.       [-]brkint
  85.            Breaks cause an interrupt signal.
  86.  
  87.       [-]ignpar
  88.            Ignore characters with parity errors.
  89.  
  90.       [-]parmrk
  91.            Mark parity errors (with    a 255-0-character sequence).
  92.  
  93.       [-]inpck
  94.            Enable input parity checking.
  95.  
  96.       [-]istrip
  97.            Clear high (8th)    bit of input characters.
  98.  
  99.       [-]inlcr
  100.            Translate newline to carriage return.
  101.  
  102.       [-]igncr
  103.            Ignore carriage return.
  104.  
  105.       [-]icrnl
  106.            Translate carriage return to newline.
  107.  
  108.       [-]ixon
  109.            Enable XON/XOFF flow control.
  110.  
  111.       [-]ixoff [-]tandem
  112.            Enable sending of stop character    when the system    input
  113.            buffer is almost    full, and start    character when it
  114.            becomes almost empty again.
  115.  
  116.       [-]iuclc (np)
  117.            Translate uppercase characters to lowercase.
  118.  
  119.       [-]ixany (np)
  120.            Allow any character to restart output (only the start
  121.            character with `-').
  122.  
  123.       [-]imaxbel (np)
  124.            Enable beeping and not flushing input buffer if a
  125.            character arrives when the input    buffer is full.
  126.  
  127.  
  128.  
  129.  
  130.      Page 2                         (printed 5/18/98)
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.      SSSSTTTTTTTTYYYY((((1111))))         FFFFSSSSFFFF ((((GGGGNNNNUUUU SSSShhhheeeellllllll    UUUUttttiiiilllliiiittttiiiieeeessss))))           SSSSTTTTTTTTYYYY((((1111))))
  138.  
  139.  
  140.  
  141.       Output settings:
  142.  
  143.  
  144.       [-]opost
  145.            Postprocess output.
  146.  
  147.       [-]olcuc (np)
  148.            Translate lowercase characters to uppercase.
  149.  
  150.       [-]ocrnl (np)
  151.            Translate carriage return to newline.
  152.  
  153.       [-]onlcr (np)
  154.            Translate newline to carriage return-newline.
  155.  
  156.       [-]onocr (np)
  157.            Do not print carriage returns in    the first column.
  158.  
  159.       [-]onlret (np)
  160.            Newline performs    a carriage return.
  161.  
  162.       [-]ofill (np)
  163.            Use fill    (padding) characters instead of    timing for
  164.            delays.
  165.  
  166.       [-]ofdel (np)
  167.            Use delete characters for fill instead of null
  168.            characters.
  169.  
  170.       nl1 nl0 (np)
  171.            Newline delay style.
  172.  
  173.       cr3 cr2 cr1 cr0 (np)
  174.            Carriage    return delay style.
  175.  
  176.       tab3 tab2 tab1 tab0 (np)
  177.            Horizontal tab delay style.
  178.  
  179.       bs1 bs0 (np)
  180.            Backspace delay style.
  181.  
  182.       vt1 vt0 (np)
  183.            Vertical    tab delay style.
  184.  
  185.       ff1 ff0 (np)
  186.            Form feed delay style.
  187.  
  188.       Local    settings:
  189.  
  190.  
  191.       [-]isig
  192.            Enable interrupt, quit, and suspend special characters.
  193.  
  194.  
  195.  
  196.      Page 3                         (printed 5/18/98)
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.      SSSSTTTTTTTTYYYY((((1111))))         FFFFSSSSFFFF ((((GGGGNNNNUUUU SSSShhhheeeellllllll    UUUUttttiiiilllliiiittttiiiieeeessss))))           SSSSTTTTTTTTYYYY((((1111))))
  204.  
  205.  
  206.  
  207.       [-]icanon
  208.            Enable erase, kill, werase, and rprnt special
  209.            characters.
  210.  
  211.       [-]iexten
  212.            Enable non-POSIX    special    characters.
  213.  
  214.       [-]echo
  215.            Echo input characters.
  216.  
  217.       [-]echoe, [-]crterase
  218.            Echo erase characters as    backspace-space-backspace.
  219.  
  220.       [-]echok
  221.            Echo a newline after a kill character.
  222.  
  223.       [-]echonl
  224.            Echo newline even if not    echoing    other characters.
  225.  
  226.       [-]noflsh
  227.            Disable flushing    after interrupt    and quit special
  228.            characters.
  229.  
  230.       [-]xcase (np)
  231.            Enable input and    output of uppercase characters by
  232.            preceding their lowercase equivalents with `\', when
  233.            icanon is set.
  234.  
  235.       [-]tostop (np)
  236.            Stop background jobs that try to    write to the terminal.
  237.  
  238.       [-]echoprt [-]prterase (np)
  239.            Echo erased characters backward,    between    `\' and    '/'.
  240.  
  241.       [-]echoctl [-]ctlecho    (np)
  242.            Echo control characters in hat notation (`^c') instead
  243.            of literally.
  244.  
  245.       [-]echoke [-]crtkill (np)
  246.            Echo the    kill special character by erasing each
  247.            character on the    line as    indicated by the echoprt and
  248.            echoe settings, instead of by the echoctl and echok
  249.            settings.
  250.  
  251.       Combination settings:
  252.  
  253.  
  254.       [-]evenp [-]parity
  255.            Same as parenb -parodd cs7.  With `-', same as -parenb
  256.            cs8.
  257.  
  258.       [-]oddp
  259.  
  260.  
  261.  
  262.      Page 4                         (printed 5/18/98)
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.      SSSSTTTTTTTTYYYY((((1111))))         FFFFSSSSFFFF ((((GGGGNNNNUUUU SSSShhhheeeellllllll    UUUUttttiiiilllliiiittttiiiieeeessss))))           SSSSTTTTTTTTYYYY((((1111))))
  270.  
  271.  
  272.  
  273.            Same as parenb parodd cs7.  With    `-', same as -parenb
  274.            cs8.
  275.  
  276.       [-]nl
  277.            Same as -icrnl -onlcr.  With `-', same as icrnl -inlcr
  278.            -igncr onlcr -ocrnl -onlret.
  279.  
  280.       ek   Reset the erase and kill    special    characters to their
  281.            default values.
  282.  
  283.       sane Same as cread -ignbrk brkint -inlcr -igncr icrnl    -ixoff
  284.            -iuclc -ixany imaxbel opost -olcuc -ocrnl onlcr -onocr
  285.            -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig
  286.            icanon iexten echo echoe    echok -echonl -noflsh -xcase
  287.            -tostop -echoprt    echoctl    echoke,    and also sets all
  288.            special characters to their default values.
  289.  
  290.       [-]cooked
  291.            Same as brkint ignpar istrip icrnl ixon opost isig
  292.            icanon, plus sets the eof and eol characters to their
  293.            default values if they are the same as the min and time
  294.            characters.  With `-', same as raw.
  295.  
  296.       [-]raw
  297.            Same as -ignbrk -brkint -ignpar -parmrk -inpck -istrip
  298.            -inlcr -igncr -icrnl -ixon -ixoff -iuclc    -ixany
  299.            -imaxbel    -opost -isig -icanon -xcase min    1 time 0.
  300.            With `-', same as cooked.
  301.  
  302.       [-]cbreak
  303.            Same as -icanon.
  304.  
  305.       [-]pass8
  306.            Same as -parenb -istrip cs8.  With `-', same as parenb
  307.            istrip cs7.
  308.  
  309.       [-]litout
  310.            Same as -parenb -istrip -opost cs8.  With `-', same as
  311.            parenb istrip opost cs7.
  312.  
  313.       [-]decctlq (np)
  314.            Same as -ixany.
  315.  
  316.       [-]tabs (np)
  317.            Same as tab0.  With `-',    same as    tab3.
  318.  
  319.       [-]lcase [-]LCASE (np)
  320.            Same as xcase iuclc olcuc.
  321.  
  322.       crt  Same as echoe echoctl echoke.
  323.  
  324.       dec  Same as echoe echoctl echoke -ixany, and    also sets the
  325.  
  326.  
  327.  
  328.      Page 5                         (printed 5/18/98)
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.      SSSSTTTTTTTTYYYY((((1111))))         FFFFSSSSFFFF ((((GGGGNNNNUUUU SSSShhhheeeellllllll    UUUUttttiiiilllliiiittttiiiieeeessss))))           SSSSTTTTTTTTYYYY((((1111))))
  336.  
  337.  
  338.  
  339.            interrupt special character to Ctrl-C, erase to Del,
  340.            and kill    to Ctrl-U.
  341.  
  342.       Special characters:
  343.  
  344.  
  345.       The special characters' default values vary from system to
  346.       system.  They    are set    with the syntax    `name value', where
  347.       the names are    listed below and the value can be given    either
  348.       literally, in    hat notation (`^c'), or    as an integer which
  349.       may start with `0x' to indicate hexadecimal, `0' to indicate
  350.       octal, or any    other digit to indicate    decimal.  Giving a
  351.       value    of `^-'    or `undef' disables that special character.
  352.  
  353.  
  354.       intr Send an interrupt signal.
  355.  
  356.       quit Send a quit signal.
  357.  
  358.       erase
  359.            Erase the last character    typed.
  360.  
  361.       kill Erase the current line.
  362.  
  363.       eof  Send an end of file (terminate the input).
  364.  
  365.       eol  End the line.
  366.  
  367.       eol2 (np)
  368.            Alternate character to end the line.
  369.  
  370.       swtch    (np)
  371.            Switch to a different shell layer.
  372.  
  373.       start
  374.            Restart the output after    stopping it.
  375.  
  376.       stop Stop the    output.
  377.  
  378.       susp Send a terminal stop signal.
  379.  
  380.       dsusp    (np)
  381.            Send a terminal stop signal after flushing the input.
  382.  
  383.       rprnt    (np)
  384.            Redraw the current line.
  385.  
  386.       werase (np)
  387.            Erase the last word typed.
  388.  
  389.       lnext    (np)
  390.            Enter the next character    typed literally, even if it is
  391.  
  392.  
  393.  
  394.      Page 6                         (printed 5/18/98)
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.      SSSSTTTTTTTTYYYY((((1111))))         FFFFSSSSFFFF ((((GGGGNNNNUUUU SSSShhhheeeellllllll    UUUUttttiiiilllliiiittttiiiieeeessss))))           SSSSTTTTTTTTYYYY((((1111))))
  402.  
  403.  
  404.  
  405.            a special character.
  406.  
  407.       Special settings:
  408.  
  409.  
  410.       min N
  411.            Set the minimum number of characters that will satisfy
  412.            a read until the    time value has expired,    when -icanon
  413.            is set.
  414.  
  415.       time N
  416.            Set the number of tenths    of a second before reads time
  417.            out if the min number of    characters have    not been read,
  418.            when -icanon is set.
  419.  
  420.       ispeed N
  421.            Set the input speed to N.
  422.  
  423.       ospeed N
  424.            Set the output speed to N.
  425.  
  426.       rows N (np)
  427.            Tell the    kernel that the    terminal has N rows.
  428.  
  429.       cols N columns N (np)
  430.            Tell the    kernel that the    terminal has N columns.
  431.  
  432.       size (np)
  433.            Print the number    of rows    and columns that the kernel
  434.            thinks the terminal has.     (Systems that don't support
  435.            rows and    cols in    the kernel typically use the
  436.            environment variables LLLLIIIINNNNEEEESSSS and CCCCOOOOLLLLUUUUMMMMNNNNSSSS instead;
  437.            however,    GNU ssssttttttttyyyy does not know anything    about them.)
  438.  
  439.       line N (np)
  440.            Use line    discipline N.
  441.  
  442.       speed
  443.            Print the terminal speed.
  444.  
  445.       N    Set the input and output    speeds to N.  N    can be one of:
  446.            0 50 75 110 134 134.5 150 200 300 600 1200 1800 2400
  447.            4800 9600 19200 38400 exta extb.     exta is the same as
  448.            19200; extb is the same as 38400.  0 hangs up the line
  449.            if -clocal is set.
  450.  
  451.     OOOOPPPPTTTTIIIIOOOONNNNSSSS
  452.       -_a, --_a_l_l
  453.            Print all current settings in human-readable form.
  454.  
  455.       --_h_e_l_p
  456.            Print a usage message on    standard output    and exit
  457.  
  458.  
  459.  
  460.      Page 7                         (printed 5/18/98)
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.      SSSSTTTTTTTTYYYY((((1111))))         FFFFSSSSFFFF ((((GGGGNNNNUUUU SSSShhhheeeellllllll    UUUUttttiiiilllliiiittttiiiieeeessss))))           SSSSTTTTTTTTYYYY((((1111))))
  468.  
  469.  
  470.  
  471.            successfully.
  472.  
  473.       -_g, --_s_a_v_e
  474.            Print all current settings in a form that can be    used
  475.            as an argument to another ssssttttttttyyyy command to restore the
  476.            current settings.
  477.  
  478.       --_v_e_r_s_i_o_n
  479.            Print version information on standard output then exit
  480.            successfully.
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.      Page 8                         (printed 5/18/98)
  527.  
  528.  
  529.  
  530.